﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using FinalCRM.App_Code;


namespace FinalCRM.PhyuSin
{
    public partial class CustomerContacts : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnCreate_Click(object sender, EventArgs e)
        {
            CustomerContactBusiness customerCon = new CustomerContactBusiness(); 
            customerCon.CustomerID = txtCreateCustomerID.Text;
            customerCon.Title = txtCreateTitle.Text;
            customerCon.CustomerName = txtCreateCustomerName.Text;
            customerCon.OfficePhone = txtCreateOfficePhone.Text;
            customerCon.Mobile = txtCreateMobile.Text;
            customerCon.Fax = txtCreateFax.Text;
            
            customerCon.Email = txtCreateEmail.Text;

            customerCon.CustomerAddress = txtCreateCustomerAddress.Text;
            customerCon.CompanyName = ddlCreateCompanyName.SelectedValue;
            customerCon.UserName = ddlCreateUserName.SelectedValue;
            customerCon.AccountID = ddlCreateAccountID.SelectedValue;
         

            CustomerContactBusiness.createCustomerContact(customerCon);
        }

        protected void ASPxPageControl1_ActiveTabChanged(object source, DevExpress.Web.ASPxTabControl.TabControlEventArgs e)
        {

        }

    }
}